package com.jxc.model.po;

/***********************************************************************
 * Module:  Member.java
 * Author:  Administrator
 * Purpose: Defines the Class Member
 ***********************************************************************/

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 会员
 * 
 * @pdOid f3bb7f48-3cc6-4e96-af4a-fb2cc2244e5e
 */
@Entity
@Table(name = "HYGL_MEMBER")
public class Member extends IdEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7869866703418344067L;
	/**
	 * 办卡日期
	 * 
	 * @pdOid ef6b5413-3d81-4d05-af67-8227ac63c5fa
	 */
	private Date openDate;
	/**
	 * 会员编号
	 * 
	 * @pdOid 4a4ab108-66d1-4180-8ac1-533927eed0ef
	 */
	private String serial;
	/**
	 * 客户名称
	 * 
	 * @pdOid 84310cba-8edf-43df-8e52-5786fe8fa7fd
	 */
	private String name;
	/**
	 * 会员类别
	 * 
	 * @pdOid c9cc4128-306a-4572-a258-1de5e27cd101
	 */
	private MemberType memberType;
	/**
	 * 手机
	 * 
	 * @pdOid 73157cd7-9022-4b18-a09c-b5507e3ae4d8
	 */
	private String mobile;
	/**
	 * QQ号码
	 * 
	 * @pdOid 487e4929-0b6d-465e-bf42-df95c2b9b7b6
	 */
	private String qq;
	/**
	 * MSN号码
	 * 
	 * @pdOid c4b17b68-4ad5-438f-af46-f30f8bcce79a
	 */
	private String msn;
	/**
	 * Email
	 * 
	 * @pdOid 1c5bb74b-b948-49b0-957d-39beccba1d68
	 */
	private String email;
	/**
	 * 农历生日
	 * 
	 * @pdOid 96a3e05a-6ea1-4edd-8ed7-34a981e29c32
	 */
	private String birthdayA;
	/**
	 * 开卡店铺
	 * 
	 */
	private Repertory repertory;
	
	/**
	 * 会员性别
	 */
	private String sex;
	/**
	 * 商店名称
	 * 
	 * @pdOid cee87ae8-81ad-4bcd-b3a3-e8c5aa1e25ed
	 */
	private String storename;
	/**
	 * 消费金额
	 * 
	 * @pdOid 94303a91-064d-400a-8627-93954dc5292f
	 */
	private Double consume;
	/**
	 * 积分
	 * 
	 * @pdOid 47e54ea3-0d58-4a8d-9e6e-80382dec20cc
	 */
	private Integer point;
	/**
	 * 客户分类
	 * 
	 * @pdOid 0e8b001e-af2a-4b67-8711-f9ac3b53482c
	 */
	private CustomerType customerType;
	/**
	 * 备注
	 * 
	 * @pdOid 45cbee34-11fa-4bdf-8d6c-65a0d86a41b7
	 */
	private String remark;
	/**
	 * 指纹1
	 * 
	 */
	private String fingerprint1;
	/**
	 * 指纹2
	 * 
	 */
	private String fingerprint2;
	/**
	 * 指纹3
	 * 
	 */
	private String fingerprint3;
	/**
	 * 是否删除
	 * 
	 */
	private Boolean isDeleted;
	/**
	 * 经销商
	 * 
	 */
	private User user;

	/**
	 * 会员地址
	 */
	private String address;

	public Member() {
		super();
	}

	public Member(Long id) {
		super(id);
	}

	@Column(name = "FINGER_PRINT1")
	public String getFingerprint1() {
		return fingerprint1;
	}

	public void setFingerprint1(String fingerprint1) {
		this.fingerprint1 = fingerprint1;
	}

	@Column(name = "FINGER_PRINT2")
	public String getFingerprint2() {
		return fingerprint2;
	}

	public void setFingerprint2(String fingerprint2) {
		this.fingerprint2 = fingerprint2;
	}

	@Column(name = "FINGER_PRINT3")
	public String getFingerprint3() {
		return fingerprint3;
	}

	public void setFingerprint3(String fingerprint3) {
		this.fingerprint3 = fingerprint3;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "USER_ID")
	public User getUser() {
		return user;
	}

	public Boolean getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Column(name = "OPEN_DATE")
	public Date getOpenDate() {
		return openDate;
	}

	public void setOpenDate(Date openDate) {
		this.openDate = openDate;
	}
	
	@Column(name = "SEX")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Column(name = "SERIAL")
	public String getSerial() {
		return serial;
	}

	public void setSerial(String serial) {
		this.serial = serial;
	}

	@Column(name = "NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "MEMBER_TYPE_ID")
	public MemberType getMemberType() {
		return memberType;
	}

	public void setMemberType(MemberType memberType) {
		this.memberType = memberType;
	}

	@Column(name = "MOBILE")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Column(name = "QQ")
	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	@Column(name = "MSN")
	public String getMsn() {
		return msn;
	}

	public void setMsn(String msn) {
		this.msn = msn;
	}

	@Column(name = "EMAIL")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	
	@Column(name = "CONSUME", length = 10, precision = 2)
	public Double getConsume() {
		return consume;
	}

	@Column(name = "BIRTHDAY_A")
	public String getBirthdayA() {
		return birthdayA;
	}

	public void setBirthdayA(String birthdayA) {
		this.birthdayA = birthdayA;
	}

	public String getStorename() {
		return storename;
	}
	
	@Column(name = "STORENAME")
	public void setStorename(String storename) {
		this.storename = storename;
	}

	public void setConsume(Double consume) {
		this.consume = consume;
	}

	@Column(name = "POINT")
	public Integer getPoint() {
		return point;
	}

	public void setPoint(Integer point) {
		this.point = point;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CUSTOMER_TYPE_ID")
	public CustomerType getCustomerType() {
		return customerType;
	}

	public void setCustomerType(CustomerType customerType) {
		this.customerType = customerType;
	}
	
	@ManyToOne
	@JoinColumn(name = "REPERTORY_ID")
	public Repertory getRepertory() {
		return repertory;
	}

	public void setRepertory(Repertory repertory) {
		this.repertory = repertory;
	}
	
	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "ADDRESS")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

}